package com.camel.ftp.server;

import org.apache.camel.builder.RouteBuilder;

/**
 * 从FTP服务器上下载文件至本地.
 * 
 */
public class FTPToLocalRouteBuilder extends RouteBuilder {

	// 从FTP上下载文件
	@Override
	public void configure() throws Exception {
		from("ftp://10.11.12.189/?binary=true&passiveMode=true&delete=true&delay=5000&ftpClient.controlEncoding=gb2312").to("file:E:\\temp");
	}

}
